package com.xgf.demo.entity;

import com.xgf.demo.base.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;



@Entity
@Table(name = "school")
@Data
@SQLDelete(sql = "update school set delete_flag = 1,delete_date = now(), delete_user = ?2   where id = ?1 ")
@Where(clause = "delete_flag = 0")
public class School extends BaseEntity implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;


    public School() {
    }


}